<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<html>
<head>
    <title>产品管理</title>
    <jsp:include page="/static/common/easyui_header.jsp"></jsp:include>
    <script type="text/javascript" src="/static/js/views/product.js"></script>
</head>
<body>
<%-- 顶部增删改查功能按钮 --%>
<div id="product_toolbar">
    <a class="easyui-linkbutton" iconCls="icon-add" plain="true" data-cmd="addproduct">添加</a>

    <a class="easyui-linkbutton" iconCls="icon-edit" plain="true" data-cmd="editproduct">编辑</a>


    <a class="easyui-linkbutton" iconCls="icon-tip" plain="true" data-cmd="export">导出</a>

    <a class="easyui-linkbutton" iconCls="icon-remove" plain="true" data-cmd="removeproduct">删除</a>

    <a class="easyui-linkbutton" iconCls="icon-reload" plain="true" data-cmd="reloadproduct">刷新</a>

    &emsp;&emsp;
    <span>关键字:</span>
    <input class="easyui-textbox" id="keyword">
    <a class="easyui-linkbutton" iconCls="icon-search" plain="true" data-cmd="search">查询</a>
</div>
<table id="product_datagrid" class="easyui-datagrid"  style="height: 600px"></table>
<%-- 编辑产品信息弹框 --%>
<div id="product_dialog" class="easyui-dialog" title="编辑产品信息" data-options="buttons:'#product_dialog_buttons',closed:true">
    <form id="product_add_form" style="margin: 10px" method="post">
        <input type="hidden" name="id" id="product_id">
        <table>
            <tr>
                <td>产品名称</td>
                <td><input name="productName" class="easyui-textbox"></td>
            </tr>
            <tr>
                <td>产品编码</td>
                <td><input name="sn" class="easyui-textbox"></td>
            </tr>
            <tr>
                <td>单位</td>
                <td><input name="unit" class="easyui-textbox"></td>
            </tr>
            <tr>
                <td>售价</td>
                <td><input name="cosePrice" class="easyui-textbox"></td>
            </tr>
            <tr>
                <td>数量</td>
                <td><input name="number" class="easyui-textbox"></td>
            </tr>
            <tr>
                <td>入库时间</td>
                <td><input name="incom" class="easyui-datetimebox" value="10/11/2012 2:3:56" style="width:200px">
            </tr>
            <tr>
                <td>店铺</td>
                <%--查询出所有的商铺的所有的东西--%>
                <td>
                    <input id="combobox_product" class="easyui-combobox" name="shop.id"
                           data-options="valueField:'id',textField:'name',url:'/shop/listAllShop'"/>
                </td>
            </tr>

            <%-- 编辑框底部确定和取消按钮 --%>
            <div id="product_dialog_buttons">
                <a class="easyui-linkbutton" iconCls="icon-ok" plain="true" data-cmd="save">确定</a>
                <a class="easyui-linkbutton" iconCls="icon-cancel" plain="true" data-cmd="cancel">取消</a>
            </div>

        </table>
    </form>
</div>
</body>
</html>
